package com.isunny.mode.tactics;

import com.isunny.mode.tactics.service.EvictionStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luom
 * @date 2022/2/25
 */
@RestController
@RequestMapping("/tactics")
public class Controller {

    @Autowired
    private EvictionStrategyService evictionStrategyService;

    @GetMapping("test")
    public String test(@RequestParam String key) {
        return evictionStrategyService.select(key);
    }
}
